<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>Editar Usuarios</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
   <link rel="stylesheet" href="http://localhost/codeIgniterV2Copy/css/bootstrap.css"> 
	
</head>
<body>

  <div class="navbar navbar-fixed-top" style="position: relative">
            <div class="navbar-inner">
                <div class="container" style="width: auto; padding: 0 20px;">
                    <ul class="nav">
                        <li><a href="#">nombre de usuario :D - Admin</a></li>
                    </ul>
                    <a href="" class="btn pull-right">Cerrar Sessión?</a>
                </div>
            </div>
        </div>
        <div>  
            <div class="carousel slide">
                <div class="carousel-inner">
                    <div class="item active">
                        <header class="unit hero-unit">
                            <h1>Carga Laboral</h1><br>
                            <p>Panel de registrar usuario</p>
                        </header>
                    </div>
                </div>
            </div>
        </div> 
        <br>
  


<div class = "container" id="container">
  <div class="row">
  	
  	<div class="col-lg-8">

	<legend>Nuevo Usuario</legend> 
    
    <?php 
    
    //print_r($temp);
    echo form_open('welcome/validar_registro'); //enlace donde se verificarán los datos
    
    echo validation_errors();
    
    echo "<p> DNI: ";
    echo form_input('dni',$this->input->post('dni'));
    echo "</p>";
    
    echo "<p> Nombre: ";
    echo form_input('nombre',$this->input->post('nombre'));
    echo "</p>";
    
    echo "<p> Apellido: ";
    echo form_input('apellido',$this->input->post('apellido'));
    echo "</p>";
    
    echo "<p> User: ";
    echo form_input('user',$this->input->post('user'));
    echo "</p>";
    
    echo "<p> Password: ";
    echo form_password('password');
    echo "</p>";
    
    echo "<p> Confirm Password: ";
    echo form_password('cpassword');
    echo "</p>";
        
    echo "<p> Mail: ";
    echo form_input('mail',$this->input->post('mail'));
    echo "</p>";
    
    echo "<p> Rol: ";
    $options = array(
    		'a' => 'administrador',
    		'u' =>'usuario',
    	    'i' =>'inactivo',
    );
    
   
    echo form_dropdown('rol',$options,'u');
    echo "</p>";
    
    echo "<p>";
    echo  "<input class=\"btn btn-primary\" type=\"submit\" name=\"mysubmit\" value=\"Registrar\" />";
    echo "</p>";
    
    
    echo form_close();
    
    ?>
    <button class="btn btn-primary" onclick = "location.href='<?php echo base_url()."welcome/ListaUsuarios";?>';">Regresar</button>
    

	</div>
   </div>	
</div><!-- /container -->	
	<div class="container"  style="padding-top: 50px;"><hr>
            <footer class="footer">
                <p style="text-align: center;">
                    &copy; 2013 RED - Lima, Perú<br> 
                    Comentarios y/o sugerencias: <a href="mailto:contacto@red.net.pe">contacto@red.net.pe</a></p>

            </footer></div><!-- /container -->

</body>
</html>